package maintain

import (
	"context"
	"gf_blog_admin/internal/service"

	"gf_blog_admin/api/maintain/v1"
)

func (c *ControllerV1) DatabaseDetail(ctx context.Context, req *v1.DatabaseDetailReq) (res *v1.DatabaseDetailRes, err error) {
	res = &v1.DatabaseDetailRes{}
	res.Columns, err = service.Database().Detail(ctx, req.Table)
	return
}
